package cm367;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

@ManagedBean
public class User {
	private String name;
	private String email;
	private String role;
	private String password;
	private String title;
	private String telNo;
	
	@ManagedProperty(value="#{userService}")
	private UserService userservice;
	
	@ManagedProperty(value="#{RequestService}")
	private RequestService requestService;
	
	public User() {
	}
	
	public User(String name, String email, String role, String password, String title, String telNo){
		this.name = name;
		this.email = email;
		this.role = role;
		this.password = password;
		this.title = title;
		this.telNo = telNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTelNo() {
		return telNo;
	}

	public void setTelNo(String telNo) {
		this.telNo = telNo;
	}

	public UserService getUserservice() {
		return userservice;
	}

	public void setUserservice(UserService userservice) {
		this.userservice = userservice;
	}

	public RequestService getRequestService() {
		return requestService;
	}

	public void setRequestService(RequestService requestService) {
		this.requestService = requestService;
	}
	
	
}
